﻿<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>Swiper demo</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1">
    <link href="/medias/resource/css/jquery.mobile-1.4.5.min.css" rel="stylesheet" type="text/css">
    <link href="/medias/resource/css/theme-classic.css" rel="stylesheet" type="text/css">
    <script src="/medias/resource/js/jquery-1.10.1.min.js"></script>
    <script src="/medias/resource/js/mobiscroll.custom-2.6.2.min.js"></script>
    <link href="/medias/resource/css/mobiscroll.custom-2.6.2.min.css" rel="stylesheet" type="text/css" />
    <!--<script src="/medias/resource/js/jquery.mobile-1.4.5.min.js"></script>-->
    <!-- Link Swiper's CSS -->
    <link rel="stylesheet" href="http://www.swiper.com.cn/dist/css/swiper.min.css">

    <!-- Demo styles -->
    <style>
        html, body {
            position: relative;
            height: 100%;
        }

        body {
            background: #eee;
            font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
            font-size: 14px;
            color: #000;
            margin: 0;
            padding: 0;
        }

        .swiper-container {
            width: 100%;
            height: 100%;
        }

        .swiper-slide {
            text-align: center;
            font-size: 18px;
            background: #fff;
            /* Center slide text vertically */
            display: -webkit-box;
            display: -ms-flexbox;
            display: -webkit-flex;
            display: flex;
            -webkit-box-pack: center;
            -ms-flex-pack: center;
            -webkit-justify-content: center;
            justify-content: center;
            -webkit-box-align: center;
            -ms-flex-align: center;
            -webkit-align-items: center;
            align-items: center;
        }
    </style>
</head>
<body>
    <div data-role="header" data-theme="b" role="banner" class="ui-header ui-bar-b" style="padding: 2px;">
        <h1 class="ui-title" role="heading" aria-level="1">雷达图</h1>
        <a href="#" class="footer-button-left ui-btn-left ui-btn ui-icon-power ui-btn-icon-left ui-btn-inline ui-corner-all ui-mini" data-role="button" role="button">前一天</a>
        <a href="#" class="footer-button-right ui-btn-right ui-btn ui-icon-carat-r ui-btn-icon-right ui-btn-inline ui-corner-all ui-mini" data-role="button" role="button">后一天</a>
    </div>
    <!-- Swiper -->
    <div data-role="content" class="ui-content" role="main">
        <div style="margin-bottom:5px;">
            <label>请选择时间</label>
            <select id="demo">
                <option value="1">1</option>
                <option value="2">2</option>
                <option value="3">3</option>
                <option value="4">4</option>
                <option value="5">5</option>
                <option value="6">6</option>
                <option value="7">7</option>
                <option value="8">8</option>
                <option value="9">9</option>
                <option value="10">10</option>
                <option value="11">11</option>
                <option value="12">12</option>
            </select>
            <input type="button" value="播放" />
        </div>
        <!-- Swiper -->
        <div class="swiper-container" style="height:90%">
            <div class="swiper-wrapper swiper-container-horizontal">
                <div class="swiper-slide">
                    <img src="medias/radar/20150210.001200.01.19.999.gif" style="width: 100%; height: initial" /></div>
                <div class="swiper-slide">
                    <img src="medias/radar/20150210.001200.01.19.999.gif" style="width: 100%; height: initial" /></div>
                <div class="swiper-slide">
                    <img src="medias/radar/20150210.001200.01.19.999.gif" style="width: 100%; height: initial" /></div>
                <div class="swiper-slide">
                    <img src="medias/radar/20150210.001200.01.19.999.gif" style="width: 100%; height: initial" /></div>
                <div class="swiper-slide">
                    <img src="medias/radar/20150210.001200.01.19.999.gif" style="width: 100%; height: initial" /></div>
                <div class="swiper-slide">
                    <img src="medias/radar/20150210.001200.01.19.999.gif" style="width: 100%; height: initial" /></div>
            </div>
            <!-- Add Pagination -->
            <div class="swiper-pagination"></div>
            <!-- Add Arrows -->
            <div class="swiper-button-next"></div>
            <div class="swiper-button-prev"></div>
        </div>
    </div>
    <div data-role="footer" data-position="fixed" data-theme="b" role="contentinfo" class="ui-footer ui-bar-b ui-footer-fixed slideup">
        <div data-role="navbar" class="ui-navbar" role="navigation">
            <ul class="ui-grid-a">
                <li class="ui-block-a"><a href="#" class="ui-btn-active ui-link ui-btn">0.5度仰角</a></li>
                <li class="ui-block-b"><a href="#" class="ui-link ui-btn">1.5度仰角</a></li>
            </ul>
        </div>
    </div>
    <!-- Swiper JS -->
    <script src="http://www.swiper.com.cn/dist/js/swiper.min.js"></script>

    <!-- Initialize Swiper -->
    <script>

        var fixgeometry = function () {
            /* Some orientation changes leave the scroll position at something
             * that isn't 0,0. This is annoying for user experience. */
            scroll(0, 0);
            /* Calculate the geometry that our content area should take */
            var header = $(".ui-header:visible");
            var footer = $(".ui-footer:visible");
            var content = $(".ui-content:visible");
            var viewport_height = $(window).height();
            var content_height = viewport_height - header.outerHeight() - footer.outerHeight();
            /* Trim margin/border/padding height */
            content_height -= (content.outerHeight() - content.height());
            content.height(content_height);
        }; /* fixgeometry */
        $(document).ready(function () {
            $(window).bind("orientationchange resize pageshow", fixgeometry);
        });
        var swiper = new Swiper('.swiper-container', {
            pagination: '.swiper-pagination',
            nextButton: '.swiper-button-next',
            prevButton: '.swiper-button-prev',
            paginationClickable: true,
            spaceBetween: 30,
            centeredSlides: true,
            autoplay: 2500,
            autoplayDisableOnInteraction: false
        });


        $(function () {
            $('#demo').mobiscroll().select({
                theme: 'mobiscroll',
                display: 'bottom',
                minWidth: 200
            });
        });
    </script>
</body>
</html>
